﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WSPDocGenerator
{
    class PrintOut
    {
        internal static void Message(string message)
        {
            Message(message, false, null);
        }

        internal static void BlankLine()
        {
            Message(string.Empty, false, null);
        }

        internal static void Message(string message, bool addEmptyLine)
        {
            Message(message, addEmptyLine, null);
        }

        internal static void Message(string message, bool addEmptyLine, params object[] param)
        {
            Console.WriteLine(message, param);
            if (addEmptyLine)
                Console.WriteLine("");

            Console.Out.Flush();

        }

        internal static void Usage()
        {
            Console.WriteLine("Generate html documentation of WSPs reading manifest and features");
            Console.WriteLine("");
            Console.WriteLine("Usage: WSPDocGenerator <WSPs folder> <output folder>");
            Console.WriteLine("");
            Console.WriteLine("Parameter:");
            Console.WriteLine("        <WSPs folder> wsp folder name");
            Console.WriteLine("        <output folder> folder used to generate documentation and extract WSP");
            Console.WriteLine("");
            //Console.WriteLine("Output:");
            //Console.WriteLine("        Create folder called WSP under <WSPs folder> with all files extracted from WSP and documentation.");
            Console.WriteLine("");
        }

        internal static void ApplicationInfo()
        {
            Console.WriteLine("WSPDocGenerator by Marco Rizzi. http://wspdocgenerator.codeplex.com");
            Console.WriteLine("");
        }
    }
}
